package com.jqb.hibernatebbs.service.impl;

import java.io.Serializable;

import com.jqb.hibernatebbs.service.CommonService;
import com.jqb.hibernatebbs.util.SessionLazyHandler;
/**
 * 通用抽象类
 * @author Dong
 *
 */
public abstract class CommonServiceImpl implements CommonService{

	@Override
	public Object getInfoById(Class<?> clazz, Serializable i) {
		Object obj = null;
		obj = SessionLazyHandler.hqlQueryById(clazz, i);
		return obj;
	}

	@Override
	public void addInfo(Object obj) {
		SessionLazyHandler.hqlInsert(obj);
	}

}
